package com.slkj.mapper;

import com.slkj.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName UserRoleMapper.java
 * @Description TODO
 * @createTime 2020年03月09日 11:15:00
 */
@Mapper
public interface UserRoleMapper  {
    void insertUserRole(UserRole userRole);

    List<Map> getRoleMap(String search);

    List<UserRole> selectUserRole(int pId);

    List<UserRole> selectUserRoleAll();

    int selectUserRolePid(int parseInt);

    List<UserRole> getRoleByRoleName(String roleName);
}
